/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @private
 *
 * @properties={typeid:24,uuid:"AF365366-12F2-4553-9DA5-2C52A42DC34D"}
 */
function onRender(event) {

	/** @type {JSRecord<db:/pigeon_board/adm_t900_usuarios>} */
	var record = event.getRecord();
	
	if (record && record.b_es_super_adm == 1) {
		event.getRenderable().fgcolor = 'red';
	} else if (record && record.b_es_adm){
		event.getRenderable().fgcolor = 'blue';
	}else{
		event.getRenderable().fgcolor = '#808080';
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"0877A44E-8ED5-4D03-B59F-BF1E2000E6B8"}
 */
function alta(event) {
	
	scopes.adm_t900_usuarios.alta(event,null,null,null);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"B81E0067-A20B-4A8C-BBCA-4BCF5E0448F0"}
 */
function eliminar(event) {

}
